↳ Prolog
↳ PrologToPiTRSProof
avg_in_gag(s(X), Y, Z) → U1_gag(X, Y, Z, avg_in_gag(X, s(Y), Z))
avg_in_gag(X, s(s(s(Y))), s(Z)) → U2_gag(X, Y, Z, avg_in_gag(s(X), Y, Z))
avg_in_gag(0, 0, 0) → avg_out_gag(0, 0, 0)
avg_in_gag(0, s(0), 0) → avg_out_gag(0, s(0), 0)
avg_in_gag(0, s(s(0)), s(0)) → avg_out_gag(0, s(s(0)), s(0))
U2_gag(X, Y, Z, avg_out_gag(s(X), Y, Z)) → avg_out_gag(X, s(s(s(Y))), s(Z))
U1_gag(X, Y, Z, avg_out_gag(X, s(Y), Z)) → avg_out_gag(s(X), Y, Z)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
avg_in_gag(s(X), Y, Z) → U1_gag(X, Y, Z, avg_in_gag(X, s(Y), Z))
avg_in_gag(X, s(s(s(Y))), s(Z)) → U2_gag(X, Y, Z, avg_in_gag(s(X), Y, Z))
avg_in_gag(0, 0, 0) → avg_out_gag(0, 0, 0)
avg_in_gag(0, s(0), 0) → avg_out_gag(0, s(0), 0)
avg_in_gag(0, s(s(0)), s(0)) → avg_out_gag(0, s(s(0)), s(0))
U2_gag(X, Y, Z, avg_out_gag(s(X), Y, Z)) → avg_out_gag(X, s(s(s(Y))), s(Z))
U1_gag(X, Y, Z, avg_out_gag(X, s(Y), Z)) → avg_out_gag(s(X), Y, Z)
AVG_IN_GAG(s(X), Y, Z) → U1_GAG(X, Y, Z, avg_in_gag(X, s(Y), Z))
AVG_IN_GAG(s(X), Y, Z) → AVG_IN_GAG(X, s(Y), Z)
AVG_IN_GAG(X, s(s(s(Y))), s(Z)) → U2_GAG(X, Y, Z, avg_in_gag(s(X), Y, Z))
AVG_IN_GAG(X, s(s(s(Y))), s(Z)) → AVG_IN_GAG(s(X), Y, Z)
avg_in_gag(s(X), Y, Z) → U1_gag(X, Y, Z, avg_in_gag(X, s(Y), Z))
avg_in_gag(X, s(s(s(Y))), s(Z)) → U2_gag(X, Y, Z, avg_in_gag(s(X), Y, Z))
avg_in_gag(0, 0, 0) → avg_out_gag(0, 0, 0)
avg_in_gag(0, s(0), 0) → avg_out_gag(0, s(0), 0)
avg_in_gag(0, s(s(0)), s(0)) → avg_out_gag(0, s(s(0)), s(0))
U2_gag(X, Y, Z, avg_out_gag(s(X), Y, Z)) → avg_out_gag(X, s(s(s(Y))), s(Z))
U1_gag(X, Y, Z, avg_out_gag(X, s(Y), Z)) → avg_out_gag(s(X), Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
AVG_IN_GAG(s(X), Y, Z) → U1_GAG(X, Y, Z, avg_in_gag(X, s(Y), Z))
AVG_IN_GAG(s(X), Y, Z) → AVG_IN_GAG(X, s(Y), Z)
AVG_IN_GAG(X, s(s(s(Y))), s(Z)) → U2_GAG(X, Y, Z, avg_in_gag(s(X), Y, Z))
AVG_IN_GAG(X, s(s(s(Y))), s(Z)) → AVG_IN_GAG(s(X), Y, Z)
avg_in_gag(s(X), Y, Z) → U1_gag(X, Y, Z, avg_in_gag(X, s(Y), Z))
avg_in_gag(X, s(s(s(Y))), s(Z)) → U2_gag(X, Y, Z, avg_in_gag(s(X), Y, Z))
avg_in_gag(0, 0, 0) → avg_out_gag(0, 0, 0)
avg_in_gag(0, s(0), 0) → avg_out_gag(0, s(0), 0)
avg_in_gag(0, s(s(0)), s(0)) → avg_out_gag(0, s(s(0)), s(0))
U2_gag(X, Y, Z, avg_out_gag(s(X), Y, Z)) → avg_out_gag(X, s(s(s(Y))), s(Z))
U1_gag(X, Y, Z, avg_out_gag(X, s(Y), Z)) → avg_out_gag(s(X), Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
AVG_IN_GAG(X, s(s(s(Y))), s(Z)) → AVG_IN_GAG(s(X), Y, Z)
AVG_IN_GAG(s(X), Y, Z) → AVG_IN_GAG(X, s(Y), Z)
avg_in_gag(s(X), Y, Z) → U1_gag(X, Y, Z, avg_in_gag(X, s(Y), Z))
avg_in_gag(X, s(s(s(Y))), s(Z)) → U2_gag(X, Y, Z, avg_in_gag(s(X), Y, Z))
avg_in_gag(0, 0, 0) → avg_out_gag(0, 0, 0)
avg_in_gag(0, s(0), 0) → avg_out_gag(0, s(0), 0)
avg_in_gag(0, s(s(0)), s(0)) → avg_out_gag(0, s(s(0)), s(0))
U2_gag(X, Y, Z, avg_out_gag(s(X), Y, Z)) → avg_out_gag(X, s(s(s(Y))), s(Z))
U1_gag(X, Y, Z, avg_out_gag(X, s(Y), Z)) → avg_out_gag(s(X), Y, Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
AVG_IN_GAG(X, s(s(s(Y))), s(Z)) → AVG_IN_GAG(s(X), Y, Z)
AVG_IN_GAG(s(X), Y, Z) → AVG_IN_GAG(X, s(Y), Z)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
AVG_IN_GAG(X, s(Z)) → AVG_IN_GAG(s(X), Z)
AVG_IN_GAG(s(X), Z) → AVG_IN_GAG(X, Z)
From the DPs we obtained the following set of size-change graphs: